#!/bin/bash
cdate=$(date +%Y%m%d)
# 创建备份文件夹
mkdir -p /app/pmapp/bak/service/$cdate
# 停止服务
if [ -e /app/pmapp/scripts/privacy/docker-compose.yml ]; then
  docker-compose -f /app/pmapp/scripts/privacy/docker-compose.yml down
  # 备份服务
  mv /app/pmapp/scripts/privacy/docker-compose.yml /app/pmapp/bak/system/$cdate/
fi
